package cn.hznc.mapper;

import cn.hznc.domain.entity.TypeItemEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Author Administrator
 * @Date 2023/3/23 11:28
 */
public interface TypeItemMapper extends ExtendMapper<TypeItemEntity> {

    @Select(value = "select type_name from t_type_item where type = #{type}")
    String getTypeNameByType(@Param("type") String type);

    @Select(value = "select `type` from t_type_item where type_name = #{typeName}")
    String selectCodeByTypeName(@Param("typeName")String typeName);
}
